﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Serialization;

namespace Model
{
    [DataContract]
    [MB.Orm.Mapping.Att.ModelMap("JDOrderDiscount", "JDOrderDiscount", new string[] { "ID" })]
    [KnownType(typeof(JDOrderDiscount))]
    public class JDOrderDiscount : MB.Orm.Common.BaseModel
    {
        public JDOrderDiscount()
        {

        }
        //订单号
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("orderId", System.Data.DbType.Int64)]
        public long orderId { get; set; }
        //京东SKUID
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("skuId", System.Data.DbType.Int64)]
        public long skuId { get; set; }
        //记录参加活动的sku数组
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("skuIds", System.Data.DbType.String)]
        public string skuIds { get; set; }
        //优惠类型(1:优惠码;3:优惠劵;4:满减;5:满折;6:首单优惠)
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("discountType", System.Data.DbType.Int16)]
        public int discountType { get; set; }
        //小优惠类型(优惠码(1:满减;2:立减;3:满折;);优惠券(1:满减;2:立减;3:免运费劵;4:运费优惠N元;))
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("discountDetailType", System.Data.DbType.Int16)]
        public int discountDetailType { get; set; }
        //优惠券编号
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("discountCode", System.Data.DbType.String)]
        public string discountCode { get; set; }
        //优惠金额
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("discountPrice", System.Data.DbType.Int64)]
        public long discountPrice { get; set; }
    }
}
